//引入必要的包
import Vue from 'vue';
import iView from 'iview';
import vuex from 'vuex';
import vueext from './extended/vueext';
import axios from './config.js';
import 'iview/dist/styles/iview.css';
import './styles/main.css';
import './styles/fill.css';

//axios全局设置
import App from './app.vue';

//自定义文件

import router from './router';//路由配置
import store from './store.js';//vuex配置
import echarts from './echartsConfig.js';//echarts配置
import Loading from './views/common/loading.vue'
import Footer from './views/common/pageFoot.vue'
import Header from './views/common/pageHeade.vue'
import Breadcrumb from './views/common/Breadcrumb.vue'
import pageMenu from  './views/common/pageMenu.vue'

//loading动画加载



//添加使用
Vue.prototype.$http = axios;//
Vue.use(iView);
Vue.use(vuex);
Vue.use(vueext);
Vue.component('Loading', Loading);//全局加载组件
Vue.component('pageFooter',Footer);//全局页尾组件
Vue.component('pageHeader',Header);//全局页头组件
Vue.component('pageBreadcrumb',Breadcrumb);//全局页头组件
Vue.component('pageMenu',pageMenu);


new Vue({
  el: '#app',
  store,
  router,
  template: '<App/>',
  components: { App },

});
